package com.glela.live.messages;

import com.glela.live.util.GsonUtil;

public class StreamMessage extends BaseMessage{

    private int status=1;//status 0:关流，1：推流

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    private int showFlag = 0;

    public int getShowFlag() {
        return showFlag;
    }

    public User getUser() {
        return user;
    }

    private User user = new User("-1","-1","");

    private transient static final String Type = "XP:StreamMsg";
    @Override
    public String getType() {
        return Type;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, StreamMessage.class);
    }

    public StreamMessage(int status){
        this.status = status;
    }
}
